<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <form class="form-horizontal" role="form"  method="post" action="{:U('hundle')}">
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 域名列表 </label>
                                    <div class="col-sm-9">
                                        <textarea class="col-xs-12 col-sm-5" placeholder="多个域名换行输入" style="height:300px;" id="txtDomain" name="content"></textarea>
                                        <span class="help-inline col-xs-12 col-sm-7">
                                            <span class="middle"></span>
                                        </span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 层级 </label>
                                    <div class="col-sm-9">
                                        <select class="col-xs-12 col-sm-5" id="level" name="level">
                                            <option value="1">小说主体</option>
                                            <option value="2" selected>展示层</option>											
                                        </select>
                                        <span class="help-inline col-xs-12 col-sm-7">
                                            <span class="middle"></span>
                                        </span>
                                    </div>
                                </div>

                                <div class="col-md-offset-2 col-md-9">
                                    <button class="btn btn-info btn-submit" type="submit" >
                                        <i class="icon-ok bigger-110"></i>
                                        添加
                                    </button>

                                </div>
                            </form>
                        </div>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(".link-setting").on("click" , function(){
        
        var status = $(this).attr("data-value");
        var id = $(this).attr("data-id");
        $.post("{:U('change_domain_status')}" , {status:status,id:id} , function(data){
            if(data.status == 1){
                layer.alert(data.msg , function(){
                    window.location.reload();
                })
            }else{
                layer.alert(data.msg);
            }
        })
    })
</script>
</body>
</html>
